home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / duocalc.zip / DUOCALC.DOC next >
Text File  |  1991-11-05  |  6KB  |  131 lines

  1. DUOCALC
  2.  
  3. DUOCALC is a combination RPN calculator and financial calculator written in
  4. Turbo Pascal 5.0.
  5.  
  6. The following primitives are supported:
  7.  
  8.                +         plus
  9.                -         minus
  10.                *         times
  11.                /         divide
  12.                ^         power
  13.                \         inverse
  14.                %         percent
  15.                ln        natural log
  16.                log       log10
  17.                pi        PI
  18.                e         e
  19.                abs       absolute value
  20.                int       integer part
  21.                frac      fractional part
  22.                mod       modulus
  23.                chs       change sign
  24.                sqrt      square root
  25.                sqr       square
  26.                sin       sine
  27.                cos       cosine
  28.                tan       tangent
  29.                asin      arcsine
  30.                acos      arccosine
  31.                atan      arctangent
  32.                hr        convert HH.MMSSHH to decimal hours
  33.                hms       convert decimal hrs to HH.MMSSHH
  34.                jdn       convert YYYY.MMDD to julian day number
  35.                date      convert julian day number to YYYY.MMDD
  36.                drop      [n1 n2 ... n1]
  37.                dup       [n1 ... n1 n1]
  38.                swap      [n1 n2 ... n2 n1]
  39.                over      [n1 n2 ... n1 n2 n1]
  40.                rot       [n1 n2 n3 ... n2 n3 n1]
  41.                clst      clear stack
  42.                clrg      clear registers
  43.                !         store to a register
  44.                +!        add top of stack to a register
  45.                @         fetch from a register
  46.                fix       set format for fixed display (e.g. 10.2 fix)
  47.                sci       set format for scientific display
  48.                F!        store to a financial register
  49.                F@        fetch from a financial register
  50.                [ ... ]   summation i.e. [ 1 2 3 4 5 6 ] = Σ 1..6
  51.  
  52. The stack size is 10 and there are 10 registers (0-9). Up to 80
  53. characters may be entered on a command line with full editing capabilities.
  54.  
  55. Hex and binary support:
  56.  
  57. The calculator has limited support for hex and binary integer conversions.
  58. For binary or hex integer input use a 'b'  or 'h' suffix, e.g. 1011b or
  59. 0AFh. Note that hex integers with a first digit > 9 must start with 0. To
  60. display the top stack register as a hex or binary integer you may use the HEX
  61. or BIN command at the prompt. Binary and hex integers must be between
  62. 0 and 2^32-1.
  63.  
  64. Date support:
  65.  
  66. Date arithmetic is supported using the jdn and date operators. With a julian
  67. day number on the stack, entering the command DOW will display the
  68. corresponding day of the week, noting that the day-of-the-week is
  69. jdn 1 + 7 mod.
  70.  
  71. Clearing the calculator window:
  72.  
  73. The calculator window may be cleared by entering the command CLS at the prompt.
  74.  
  75. Returning to DOS:
  76.  
  77. Quit by pressing escape at the prompt.
  78.  
  79. Financial functions:
  80.  
  81. The financial functions are invoked by pressing F3, then executing the
  82. particular financial function needed. The standard convention that a negative
  83. sign indicates a cash outflow is used. The compounding frequency (CF)
  84. is the number of times the interest is compounded during the period implied
  85. by the given interest rate, while the payment frequency (PF) is the number
  86. of payments to be made during the same period. When no payments are involved,
  87. PF = CF. For continuous compounding CF=PF=1. A monthly interest problem could
  88. be stated using the annual interest rate divided by 12 or using the annual
  89. interest rate and setting CF=PF=12. Note that the number of payments remains
  90. the same, the number of months. The flags [D,E] and [B,E] indicate whether
  91. calculations are based on discrete or contiouous compounding and beginning
  92. or end of period payments. The default is DE, discrete compounding and end
  93. of period payments.
  94.  
  95. The financial calculator stores the five arguments in financial registers 1-5.
  96. Use the F! and F@ operators to move arguments between the stack and the
  97. financial registers. If you are using the financial calculator and want to do
  98. a calculation on the stack to determine a particular argument, move to the
  99. appropriate register and press F3. This will return you to the RPN calculator
  100. with the financial register number on the stack. Do your calculation,
  101. then swap followed by F!, then press F3 to return to where you were. To get
  102. back to the RPN calculator you may also press escape while the cursor is on any of
  103. the function  buttons. Pressing escape while in one of the registers will
  104. only put undo any changes being made. Navigation around the financial calculator
  105. is done using the arrow keys, tab and shift-tab.
  106.  
  107. Help and stack/register display:
  108.  
  109. To get help (a list of the functions provided by DUOCALC) press F1 at the
  110. prompt. Pressing F2 at the prompt will display the stack and register.
  111. Pressing any key will close the help or stack/register window.
  112.  
  113. Caveats:
  114.  
  115. I have tried to trap potential error conditions, and if one is found
  116. or if an unknown command is found in the command string, the string will
  117. be written out with an underscore after the error. It is possible, however,
  118. that errors such as numeric overflow will occur, so be warned. To the best
  119. of my knowledge all numerical algorithms are correct and work as described,
  120. however no representation is made that such is actually the case.  The
  121. calculator will make use of a math coprocessor if one is present.
  122.  
  123. Jason Olasky
  124. 874 New Mark Esplanade
  125. Rockville, MD 20850
  126. Nov. 5, 1991
  127.  
  128. Registration: $5.00
  129. Registration + Source Code: $10.00
  130.                      
  131.